const ewsData = {
  state: {
    uid: '', // 客户进线号码
    custNo: '', // 客户号
    userId: window.Utils.cookie.readCookie('userId'), // 用户
    agentId: '', // 坐席工号
    agentName: '', // 坐席姓名
    themeColor: '', // 主题颜色
    orderDetailsId: '', // 工单编号id
    typeData: 1, // 工单历史和工单查看处的类型id 1---工单历史 2---查看工单
    orderTypeId: 1, // 工单类型过滤id
    workOrderTypeId: 0, // 工单类型id
    orderTitle: '', // 工单标题
  },
  getters: {
    userId: state => {
      return state.userId
    },
    agentId: state => {
      return state.agentId
    },
    agentName: state => {
      return state.agentName
    },
    uid: state => {
      return state.uid
    }
  },
  mutations: {
    uidFun(state, val) {
      state.uid = val
    },
    getCustNoFun(state, val) {
      state.custNo = val
    },
    userIdFun(state, val) {
      state.userId = val
    },
    agentIdFun(state, val) {
      state.agentId = val
    },
    agentNameFun(state, val) {
      state.agentName = val
    },
    themeColorFun(state, val) {
      state.themeColor = val
    },
    orderDetailsIdFun(state, val) {
      state.orderDetailsId = val
    },
    typeDataFun(state, val) {
      state.typeData = val
    },
    orderTypeIdFun(state, val) {
      state.orderTypeId = val
    },
    workOrderTypeIdFun(state, val) {
      state.workOrderTypeId = val
    },
    orderTitleFun(state, val) {
      state.orderTitle = val
    }
  }
}
export default ewsData
